function load(needid) {
	$.ajax({
		//url : "http://120.78.90.235:9090/res/need/detail",
		url : Server +"/res/need/detail",
		type : "POST",
		dataType : "JSON",
		data : {
			"offset" : 0,
			"limit" : 10,
			"needId" :needid
		},
		success : function(data) {
			var m = data.rows;
//			alert(m);
//			var Time =( m[0].needCloseTime).substring(0,( m[0].needCloseTime).indexOf(' '));
//			var Timel =( m[0].needUpTime).substring(0,( m[0].needUpTime).indexOf(' '));
			var Status = "";//需求类型0：技术需求1：合作需求2：人才需求
			var Status1 = "";//展示状态 0：未解决 1：已解决
			switch (m[0].ntypeId)
			{
			case 0:
				Status = "技术需求";
				break;
			case 1:
				Status = "合作需求";
				break;
			case 2:
				Status = "人才需求";
				break;
			}
			switch(m[0].ntradeId)
			{
			case 0:
				Status1 = "需求未解决";
				break;
			case 1:
				Status1 = "需求已解决"
				break ;
			}
			//alert(m[0].address);
			$("#in0").html(m[0].needName);
			$("#in1").html(Status);
			$("#in2").html(m[0].tradeName);
			$("#in3").html(m[0].needExplain);
			//$("#in4").html(Timel);
			//$("#in5").html(Time);
			if(m[0].address == null){
				var address = "未知";
			}else{
				var address = m[0].address;
			}
			$("#in6").html(m[0].address);
			$("#in7").html(m[0].needBudget + '万');
			$("#in8").html(Status1);
		}
	})
}
function findOrder(){
	$(location).attr('href', 'scienic_expertsshow11');
}
function particulars(needId) {
	$.ajax({
		url : Server +"/res/need/tech",
		type : "POST",
		dataType : "JSON",
		data : {
			"offset" : 0,
			"limit" : 10,
			"needId" : needId
		},
		success : function(data) {
			var m = data.rows;
			var html = "";
			var item = "";
			for(var k = 0 ;k<m.length;k++ ){
				var pattern = '<li class="sun_li_row">\
					<div class="li_title" style=" padding-left: 10px;text-align: left;">\
					<input type="checkbox" name="checkbox" id="" value="" />\
					<label><img src="images/icon35.png"  id="caocao_pic" onclick="change_pic()" /><span>设置为买家</span></label>\
				</div>\
					<div style="padding-right: 20px;display: inline-block;">\
					 <div class="li_row1">\
					 	<div class="info_left">#0</div>\
					 	<div class="info_right">\
					 		<span>#1</span><br />\
					 		<span style="color: rgb(6,185,254);">#2</span>\
					 	</div>\
					 </div>\
					 <div class="li_row2">';}
			for (var i = 0; i < m.length; i++) {
					item += pattern.replace("#0", m[i].techName)
						.replace("#1", m[i].name)
						.replace("#2", m[i].phone)
						var pl = "";
						var plhtml = '<div class="info_left" >#3</div>\
						 	<div class="info_right" style="float: right;">\
					 		<span>#4</span><br />\
					 	</div>';
						var plList = m[i].proofreview
						for (var j = 0; j < plList.length; j++) {
							item += plhtml.replace("#3", plList[j].reviewContent)
							.replace("#4", plList[j].euRealname)
						}
						item += "</div>\
						 </div>\
						</div>\
					</li>";
			}
			$("#detailList").html(item);
			$("#li_box").html(html);
			
			$(".li_title label").click(function() {
				$(".li_title label img").attr('src', 'images/icon35.png');
				$(".li_title label").siblings('input').prop('checked', false);
				$(this).find('img').attr('src', 'images/icon36.png');
				$(this).siblings('input').prop('checked', true);
			});
			
		}
	})
}